package com.until;

import java.io.PrintWriter;

import javax.servlet.GenericServlet;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;


    
 public class Hello1 extends GenericServlet{
        //重写一个方法service即可
        public void service(ServletRequest req, ServletResponse res){
            //返回Hello world, generic
            try{
                PrintWriter pw = res.getWriter();
                pw.println("Hello generic");
            }
            catch(Exception e){
                e.printStackTrace();
            }
        }
    }


